package com.rbac.api.controller.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;


///管理员登录
public class PostUserLoginRequest {

    //账号
    @NotEmpty(message = "post.common.account.not.null")
    @Size(min = 1,max = 32,message = "post.common.account.length.fail")
    private String account;


    //密码
    @NotEmpty(message = "post.common.password.not.null")
    @Size(min = 6,max = 16,message = "post.common.password.length.fail")
    private String password;


    @Override
    public String toString() {
        return "PostUserLoginRequest{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
